<template>
  <div class="exchange-wrap">
    <G_header />
    <div class="header-wrap">
      <div class="header">
        <van-image
          round
          width="50"
          height="50"
          :src="goodsInfo.avatar"
        />
        asdas
      </div>
    </div>
    <div class="goods">
      <van-image
        round
        width="50"
        height="50"
        :src="goodsInfo.avatar"
      />
      {{ goodsInfo.title }}
      <div class="goods-bottom">
        
        <p></p>

      </div>
    </div>
    <p class="title">权益介绍</p>
    <div class="caption shadow">
      <p></p>
    </div>
    <div class="footer">
      <button class="btn">立即兑换</button>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Exchange',
  data(){
    return {
      goodsInfo: null
    }
  },
  created(){
    this.goodsInfo = this.global.state.integral_goods;
    this.userInfo = 
    console.log(this.goodsInfo)
  },
  methods:{
    
  }
}
</script>
<style lang="less" scoped>
.header-wrap {
  position: relative;
  width: 100%;
  height: 222px;
  background-color: #e3e3e3;
  overflow: hidden;
  border-radius: 4px;
}
.header {
  position: absolute;
  width: 90%;
  bottom: 20px;
  left: 5%;
  right: 5%;
  height: 160px;
  background: white;
  padding: 0 10px;
  box-sizing: border-box;
  border-radius: 30px;
  border-bottom-right-radius: 30px;
  -webkit-box-reflect: below 0px -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}
.goods {
  position: relative;
  width: 100%;
  height: 150px;
  background-color: white;
  padding: 0 10px;
  box-sizing: border-box;
  margin: 0;
}
.goods h2 {
  padding: 4px 12px;
}
.goods-bottom {
  position: absolute;
  width:90%;
  bottom: 20px;
  padding: 5px 0;
  right: 5%;
  left: 5%;
  border-radius: 6px;
  padding: 0 10px;
  box-sizing: border-box;
}
.caption {
  width: 90%;
  margin: 10px auto;
  background-color: white;
  padding: 10px;
  box-sizing: border-box;
}
.title {
  font-size: 18px;
  padding: 0 12px;
}
.footer {
  width: 100%;
  left: 0;
  right: 0;
  margin: 0 auto;
}
.btn {
  width: 100%;
  background:#1989FA;
  border: none;
  color: white;
}
</style>
